package com.chixing.controller;

import com.chixing.service.SightsReviewService;
import com.chixing.util.ServerResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller

public class SightsReviewController {
    @Autowired
    private SightsReviewService sightsReviewService;

    @GetMapping("sales/sights/review/sightsReview/{pageNum}")
    @ResponseBody
    public ServerResponse getSightsReview(@PathVariable(value = "pageNum",required = false) Integer pageNum,
                                          @RequestParam Integer sightsId){
        return sightsReviewService.getSightsReview(sightsId, pageNum);
    }
}
